#include <iostream>
using namespace std;
int main()
{
    int a1,b1,a2,b2;
    char c;
    cin>>a1>>c>>b1;
    cin>>a2>>c>>b2;
    if(((double)a1/b1)< ((double)a2/b2))
        cout<<a1<<"/"<<b1<< " < "<<a2<<"/"<<b2;
    else
    {
        if(((double)a1/b1) ==  ((double)a2/b2))
           cout<<a1<<"/"<<b1<< " = "<<a2<<"/"<<b2;
        else
          cout<<a1<<"/"<<b1<< " > "<<a2<<"/"<<b2;
    }
}